import Vue from "vue"
import goBack from "./goBack.vue"
import toSearch from "./toSearch.vue"
import goodList from "./goodList.vue"

/*
Vue.component("goBack",goBack)
Vue.component("toSearch",toSearch)*/ 

let json={
    goBack:goBack,
    toSearch,
    goodList
}
/*
for(let i in json){
    Vue.component(i,json[i])
}*/

// Object.keys(json) ["goBack","toSearch"]
Object.keys(json).forEach(key=>{
    Vue.component(key,json[key])
})